home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscMergeProtocols.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-08  |  1.3 KB  |  48 lines

  1. //
  2. //    MiscMergeProtocols.h -- special interfaces for the MiscMergeKit
  3. //        Written by Don Yacktman Copyright (c) 1995 by Don Yacktman.
  4. //                Version 1.0.  All rights reserved.
  5. //        This notice may not be removed from this source code.
  6. //
  7. //    This object is included in the MiscKit by permission from the author
  8. //    and its use is governed by the MiscKit license, found in the file
  9. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  10. //    for a list of all applicable permissions and restrictions.
  11. //    
  12.  
  13.  
  14. typedef enum _MISC_Merge_Cond_Op {
  15.         MISC_MCO_NONE = 0,
  16.         MISC_MCO_EQUAL,
  17.         MISC_MCO_NOTEQUAL,
  18.         MISC_MCO_LESSTHANOREQUAL,
  19.         MISC_MCO_GREATERTHANOREQUAL,
  20.         MISC_MCO_LESSTHAN,
  21.         MISC_MCO_GREATERTHAN
  22. } MISC_Merge_Cond_Op;
  23.  
  24. // This is used by the engine to talk to the driver
  25. @protocol MiscMergeDriver
  26.  
  27. // Advance merge loop and return the next dictionary, nil if no more left
  28. - advanceMergeLoop;
  29.  
  30. // grabs the current merge dictionary
  31. - currentDictionary;
  32.  
  33. @end
  34.  
  35.  
  36. // Any MiscMergeCommand that wants to have a conditional evaluated needs
  37. // to implement this protocol for the MiscMergeCommand class object.  The
  38. // two values are what should be tested, with value1 being the left value.
  39. // The operator chooses what type of comparison should be evaluated.
  40. @protocol MiscMergeCondCallback
  41.  
  42. - value1;
  43. - value2;
  44. - (MISC_Merge_Cond_Op)operator;
  45.  
  46. @end
  47.  
  48.